<?php
class searchbox_chunk{
  function out(){
    global $config,$searchResults,$document;
    $plantilla= file_get_contents($config->paths["chunks/html"].'searchbox.html');
    $p=array(
      "#QUERY#"=>htmlentities($searchResults->query?$searchResults->query:'$$search$$')
      );
	$document->addStyle("css/searchbox.css");
    return str_replace(array_keys($p),$p,$plantilla);
  }
}
